home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14172 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news.tu-ilmenau.de!usenet
  2. From: "Eberhardt.Krueger" <ai108>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: 80x50 screen mode problems
  5. Date: 12 Apr 1996 12:27:45 GMT
  6. Organization: Technische Universitaet Ilmenau
  7. Message-ID: <4kli81$mfh@link.rz.tu-ilmenau.de>
  8. References: <4ki9jh$a6f@news.voicenet.com>
  9. NNTP-Posting-Host: wx-7-rtk.rz.tu-ilmenau.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (X11; I; Linux 1.2.13 i386)
  14. X-URL: news:4ki9jh$a6f@news.voicenet.com
  15.  
  16. deaton@cygnus.rsabbs.com wrote:
  17. ---snip---
  18. >I'm sure it has something to do with the fact that 
  19. >I'm using double the screen memory and rows, because it printf()'s fine so long as I don't set the cursor past (24,79), the normal screen memory. 
  20. >
  21. ---snip---
  22.  
  23. Hi.
  24.  
  25. The reason for this strange behaviour is not the larger amout of memory you
  26. use.
  27. VGA cards have 256 K as a minimum and some of them support text modes up to
  28. 132x60. Your problem is this: You change the size of the screen by setting the
  29. a smaller font. Ok. But you didn't tell DOS that it can work ( and in fact it
  30. has to work) from now on with 50 rows and printf uses usually the intterupt 21h
  31. functions to display its strings. Here a two things to do:
  32. 1. There is a BIOS variable to set. It contains the number of rows on screen.
  33.    Does it cantain the right value?  50 or 49 I don't remember.
  34. 2. There is a DOS call for setting the rows to 50. The  same that is done after
  35. calling "mode con: rows=50". 
  36. Look in your book about PC bios and DOS where you got the other interrupt
  37. functions from and try on these solutions above. I think the first should work.
  38. If not try the second or both.
  39.  
  40. Hope this helps
  41.  
  42. Lars
  43.  
  44.